#include <iostream>
#include <string>
using namespace std;

class Solution
{
public:
    string solve(string s, string t)
    {
        string ret;
        int tmp = 0;
        int i = s.size() - 1, j = t.size() - 1;

        while (i >= 0 || j >= 0 || tmp)
        {
            if (i >= 0) tmp += s[i--] - '0';
            if (j >= 0) tmp += t[j--] - '0';
            ret += '0' + tmp % 10;
            tmp /= 10;
        }
        reverse(ret.begin(), ret.end());

        return ret;
    }
};

void test01()
{
    string s1("0"), s2("0");
    Solution sl;

    string ret = sl.solve(s1, s2);

    cout << ret;

}


int main()
{
    test01();

    return 0;

}